package kr.hkit.powerjava.homework;

import java.util.Scanner;

public class Programming1 {
	public static void main(String args[]) {
		Scanner AA = new Scanner(System.in);
		int a, b, c;
		int temp;
		System.out.print("정수를 입력하시오:");
		a = AA.nextInt();
		System.out.print("정수를 입력하시오:");
		b = AA.nextInt();
		System.out.print("정수를 입력하시오:");
		c = AA.nextInt();

		if (a > b) {
			temp = a;
			a = b;
			b = temp;
			if (a > c) {
				temp = a;
				a = c;
				c = temp;
			}
			if (b > c) {
				temp = b;
				b = c;
				c = temp;
			}
		} else if (a > c) {
			temp = a;
			a = c;
			c = temp;
			if (b > c) {
				temp = b;
				b = c;
				c = temp;
			}
		} else if (b > c) {
			temp = b;
			b = c;
			c = temp;
		}
		System.out.println("정렬된숫자:" + a + " " + b + "" + c);

	}
}
